<div class="show_back">
	<form id="msg_form" name="msg_form" action="">
		<div class="show_form_text">
			<textarea id="msg_content" name="content" onfocus="if(value=='请输入姓名联系方式或邮箱后提交问题') {value=''}"
				class="show_form_text_textarea">请输入姓名联系方式或邮箱后提交问题</textarea>
		</div>
		<div style="clear: both"></div>
		<div class="show_form_input">
			<div class="show_form_input_message">
				姓名：<input type="text" id="msg_name" name="name"
					onfocus="if(value=='请输入姓名') {value=''}" value="请输入姓名">
			</div>
			<div class="show_form_input_message">
				手机：<input type="text" id="msg_phone" name="phone"
					onfocus="if(value=='请输入手机号') {value=''}" value="请输入手机号">
			</div>
			<div class="show_form_input_submit">
				<input id="submitMsgBtn" type="button" value="提交问题">
			</div>
		</div>
	</form>
</div>
<script language="javascript">
	$('#submitMsgBtn').click(function() {
		var phone = $('#msg_phone').val();
		var flag = '';
		var form = $('#msg_form');
		if(phone=="请输入手机号"){
	        $(form).find("input[name='phone']").css({"color":"#FF9D00","backgroundColor":"rgba(255,157,0,0.1)","borderColor":"#FF9D00"});
	        $(form).find("input[name='phone']").attr({"disabled":"true"});
	        setTimeout(function () { 
		        $("#msg_form").find("input[name='phone']").css({"color":"#C8C8C8","backgroundColor":"#FFF","borderColor":"#F1F1F1"});
		        $("#msg_form").find("input[name='phone']").removeAttr("disabled");
		        }, 800);
	        flag = "1";
	    }else if(phone.length != 11){
	        $(form).find("input[name='phone']").css({"color":"#FF9D00","backgroundColor":"rgba(255,157,0,0.1)","borderColor":"#FF9D00"});
	        $(form).find("input[name='phone']").val("请输入正确的手机号");
	        $(form).find("input[name='phone']").attr({"disabled":"true"});
	        setTimeout(function () { 
		        $("#msg_form").find("input[name='phone']").css({"color":"#C8C8C8","backgroundColor":"#FFF","borderColor":"#F1F1F1"});
		        $("#msg_form").find("input[name='phone']").val("请输入手机号");
		        $("#msg_form").find("input[name='phone']").removeAttr("disabled"); 
		        }, 800);
	        flag = "1";
	    };
	    if(flag != ''){
	        return false;
	    }
	    var data = $("#msg_form").serialize();
	    $.post('product/submitMsg.php', data, function(response) {
		    console.dir(response);
			alert('提交成功，请等待客服人员联系您！');
		});
	});
</script>